home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Utilities / Automation / WinWizard Pro / Sample - IFEXISTS and IFTASK.wz_ / Sample - IFEXISTS and IFTASK.wz
Encoding:
Text File  |  1998-11-13  |  655 b   |  23 lines

  1. {FLOAT} On
  2. {IFEXISTS} c:\autoexec.bat = True {THEN} FileFound
  3. {IFEXISTS} c:\autoexec.bat = False {THEN} FileNotFound
  4. {IFTASK} Untitled - Notepad = True {THEN} FoundNotepad
  5. {IFTASK} Untitled - Notepad = False {THEN} NoNotepad
  6. {END} 
  7. {SUB} FileFound
  8. {DISPLAY} 
  9. {DISPLAY} The File Autoexec.Bat Exists...
  10. {RETURN} 
  11. {SUB} FileNotFound
  12. {DISPLAYADD} There is no Autoexec.bat file on the system.
  13. {RETURN} 
  14. {SUB} FoundNotepad
  15. {DISPLAY} The Notepad program was found... Activating...
  16. {ACTIVATE} Untitled - Notepad
  17. {RETURN} 
  18. {SUB} NoNotepad
  19. {DISPLAY} The Notepad was not found... Loading it now...
  20. {RUN} C:\WINDOWS\Notepad.exe
  21. {RETURN} 
  22. {EXIT}
  23.